package ink.tiptop.constant;

/**
 * @author ink.tiptop.zjf
 * @Title: Ticket
 * @Package ink.tiptop.common.cmd
 * @Description:
 * @date 2020-07-24 14:59
 */
public class Rgx {
    /**
     * traget下面打包出来的名称
     * boot-app-bin-0.0.2-SNAPSHOT.jar
     */
    public static final String JAR_NAME = "^.*.jar$";

    /**
     * traget下面打包出来的名称,  boot-app-bin-0.0.2-SNAPSHOT.tar.gz
     */
    public static final String GZ = "^.*.tar.gz$";
    /**
     * 因为打包名称是artifactId 所以用这个,用于替换
     * boot-app-bin-0.0.2-SNAPSHOT.jar -> boot-app-bin
     */
    public static final String ARTIFACT_ID = "-\\d{1,2}.*";

    /**
     * 用于正则匹配cloud-app-bin-0.0.2-SNAPSHOT.jar 这样的格式
     */
    public static final String ARTIFACT_ID_MATCH = ".*-\\d{1,2}.*.jar";
}
